micro_utils.dokka
0.14.1
android
micro_utils.dokka
/
dev.inmo.micro_utils.coroutines
/
[android]firstOf
first
Of
android
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
variants
:
Iterable
<
Deferred
<
T
>
>
,
cancelOnResult
:
Boolean
=
true
)
:
T
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
cancelOnResult
:
Boolean
=
true
,
block
:
DoWithFirstBuilder
<
T
>
.
(
)
->
Unit
)
:
T
suspend
fun
<
T
>
CoroutineScope
.
firstOf
(
vararg
variants
:
Deferred
<
T
>
,
cancelOnResult
:
Boolean
=
true
)
:
T